﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AlgoritmenEindCase
{
    public static class BoardFactory
    {
        public static int[,] NewBoard(int boardsize)
        {
            int[,] board = new int[boardsize, boardsize]; ;
            int blackstones = boardsize * 2;
            int whitestones = boardsize * 2;

            for (int i = 0; i < 10; i++)
            {
                for (int j = 0; j < 10; j++)
                {
                    board[i, j] = 0;
                }
            }

            for (int i = 0; i < 10; i++)
            {
                for (int j = 0; j < 10; j++, j++)
                {
                    if (blackstones != 0)
                    {
                        board[i, j] = 2;
                    }
                    else
                    {
                        if (i > 6)
                        {
                            if (whitestones != 0)
                            {
                                board[i, j] = 1;
                            }
                        }
                    }
                }
            } return board;
        }
    }
}
